From bd918769732f7d2b1395e6a3971b6bd6f3e84adb Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Thu, 27 Jul 2000 03:13:07 +0000 Subject: [PATCH] applied patch from Phil Thompson that Thu Jul 27 05:06:29 2000 Tim Janik * gtk/gtktable.c: applied patch from Phil Thompson that enables space settings for the last row/columns as well. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktable.c | 8 ++++---- 8 files changed, 46 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c918f268e..02ec973e02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + Wed Jul 26 12:59:31 2000 Tim Janik * *.[hc]: applied patch from Andreas Persenius that diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 5c918f268e..02ec973e02 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + Wed Jul 26 12:59:31 2000 Tim Janik * *.[hc]: applied patch from Andreas Persenius that diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 5c918f268e..02ec973e02 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + Wed Jul 26 12:59:31 2000 Tim Janik * *.[hc]: applied patch from Andreas Persenius that diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 5c918f268e..02ec973e02 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + Wed Jul 26 12:59:31 2000 Tim Janik * *.[hc]: applied patch from Andreas Persenius that diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 5c918f268e..02ec973e02 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + Wed Jul 26 12:59:31 2000 Tim Janik * *.[hc]: applied patch from Andreas Persenius that diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 5c918f268e..02ec973e02 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + Wed Jul 26 12:59:31 2000 Tim Janik * *.[hc]: applied patch from Andreas Persenius that diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 5c918f268e..02ec973e02 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Thu Jul 27 05:06:29 2000 Tim Janik + + * gtk/gtktable.c: applied patch from Phil Thompson + that enables space settings for + the last row/columns as well. + Wed Jul 26 12:59:31 2000 Tim Janik * *.[hc]: applied patch from Andreas Persenius that diff --git a/gtk/gtktable.c b/gtk/gtktable.c index cf0cbb6c42..7d0fd1f59e 100644 --- a/gtk/gtktable.c +++ b/gtk/gtktable.c @@ -573,7 +573,7 @@ gtk_table_set_row_spacing (GtkTable *table, { g_return_if_fail (table != NULL); g_return_if_fail (GTK_IS_TABLE (table)); - g_return_if_fail (row + 1 < table->nrows); + g_return_if_fail (row < table->nrows); if (table->rows[row].spacing != spacing) { @@ -591,7 +591,7 @@ gtk_table_set_col_spacing (GtkTable *table, { g_return_if_fail (table != NULL); g_return_if_fail (GTK_IS_TABLE (table)); - g_return_if_fail (column + 1 < table->ncols); + g_return_if_fail (column < table->ncols); if (table->cols[column].spacing != spacing) { @@ -612,7 +612,7 @@ gtk_table_set_row_spacings (GtkTable *table, g_return_if_fail (GTK_IS_TABLE (table)); table->row_spacing = spacing; - for (row = 0; row + 1 < table->nrows; row++) + for (row = 0; row < table->nrows; row++) table->rows[row].spacing = spacing; if (GTK_WIDGET_VISIBLE (table)) @@ -629,7 +629,7 @@ gtk_table_set_col_spacings (GtkTable *table, g_return_if_fail (GTK_IS_TABLE (table)); table->column_spacing = spacing; - for (col = 0; col + 1 < table->ncols; col++) + for (col = 0; col < table->ncols; col++) table->cols[col].spacing = spacing; if (GTK_WIDGET_VISIBLE (table)) -- 2.30.2